package com.gkt.ec.ws.activity.model.pojo;

/**
 * @author Huzl
 * @version 1.0.0
 */
public class BaseResponse {
    private int result = 1;
    private String errorCode = null ;
    private String errorNote = "success";
    private Object detail;

    public BaseResponse() {
    }

    public BaseResponse(Object detail) {
        this.detail = detail;
    }

    public BaseResponse(String errorCode, String errorNote) {
        result = 0;
        this.errorCode = errorCode;
        this.errorNote = errorNote;
    }

    public int getResult() {
        return result;
    }

    public BaseResponse setResult(int result) {
        this.result = result;
        return this;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public BaseResponse setErrorCode(String errorCode) {
        this.errorCode = errorCode;
        this.result = 0;
        return this;
    }

    public String getErrorNote() {
        return errorNote;
    }

    public BaseResponse setErrorNote(String errorNote) {
        this.errorNote = errorNote;
        return this;
    }

    public Object getDetail() {
        return detail;
    }

    public BaseResponse setDetail(Object detail) {
        this.detail = detail;
        return this;
    }
}
